<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>xmpp.protocol.Protocol</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="xmpp-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="xmpp-module.html">Package&nbsp;xmpp</a> ::
        <a href="xmpp.protocol-module.html">Module&nbsp;protocol</a> ::
        Class&nbsp;Protocol
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="xmpp.protocol.Protocol-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class Protocol</h1><span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol">source&nbsp;code</a></span><br /><br />
<pre class="base-tree">
<a href="xmpp.simplexml.Node-class.html">simplexml.Node</a> --+
                 |
                <strong class="uidshort">Protocol</strong>
</pre>

<dl><dt>Known Subclasses:</dt>
<dd>
    <a href="xmpp.protocol.Error-class.html">Error</a>,
    <a href="xmpp.protocol.Iq-class.html">Iq</a>,
    <a href="xmpp.protocol.Message-class.html">Message</a>,
    <a href="xmpp.protocol.Presence-class.html">Presence</a>
</dd></dl>

<hr />
A &quot;stanza&quot; object class. Contains methods that are common 
  for presences, iqs and messages.<br /><br />

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="xmpp.protocol.Protocol-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">to</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">typ</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">frm</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">attrs</span>=<span class="summary-sig-default"><code class="variable-group">{</code><code class="variable-group">}</code></span>,
        <span class="summary-sig-arg">payload</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">timestamp</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">xmlns</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">node</span>=<span class="summary-sig-default">None</span>)</span><br />
      Constructor, name is the name of the stanza i.e.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getTo"></a><span class="summary-sig-name">getTo</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return value of the 'to' attribute.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.getTo">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getFrom"></a><span class="summary-sig-name">getFrom</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return value of the 'from' attribute.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.getFrom">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getTimestamp"></a><span class="summary-sig-name">getTimestamp</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return the timestamp in the 'yyyymmddThhmmss' format.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.getTimestamp">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getID"></a><span class="summary-sig-name">getID</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return the value of the 'id' attribute.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.getID">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setTo"></a><span class="summary-sig-name">setTo</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">val</span>)</span><br />
      Set the value of the 'to' attribute.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.setTo">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getType"></a><span class="summary-sig-name">getType</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return the value of the 'type' attribute.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.getType">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setFrom"></a><span class="summary-sig-name">setFrom</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">val</span>)</span><br />
      Set the value of the 'from' attribute.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.setFrom">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setType"></a><span class="summary-sig-name">setType</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">val</span>)</span><br />
      Set the value of the 'type' attribute.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.setType">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setID"></a><span class="summary-sig-name">setID</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">val</span>)</span><br />
      Set the value of the 'id' attribute.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.setID">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getError"></a><span class="summary-sig-name">getError</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return the error-condition (if present) or the textual description
      of the error (otherwise).</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.getError">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="xmpp.protocol.Protocol-class.html#getErrorCode" class="summary-sig-name">getErrorCode</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Return the error code.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.getErrorCode">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="xmpp.protocol.Protocol-class.html#setError" class="summary-sig-name">setError</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">error</span>,
        <span class="summary-sig-arg">code</span>=<span class="summary-sig-default">None</span>)</span><br />
      Set the error code.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.setError">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="xmpp.protocol.Protocol-class.html#setTimestamp" class="summary-sig-name">setTimestamp</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">val</span>=<span class="summary-sig-default">None</span>)</span><br />
      Set the timestamp.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.setTimestamp">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getProperties"></a><span class="summary-sig-name">getProperties</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return the list of namespaces to which belongs the direct childs 
      of element</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.getProperties">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="xmpp.protocol.Protocol-class.html#__setitem__" class="summary-sig-name">__setitem__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">item</span>,
        <span class="summary-sig-arg">val</span>)</span><br />
      Set the item 'item' to the value 'val'.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.__setitem__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="xmpp.simplexml.Node-class.html">simplexml.Node</a></code></b>:
      <code><a href="xmpp.simplexml.Node-class.html#__delitem__">__delitem__</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#__getattr__">__getattr__</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#__getitem__">__getitem__</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#__str__">__str__</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#addChild">addChild</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#addData">addData</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#clearData">clearData</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#delAttr">delAttr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#delChild">delChild</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getAttr">getAttr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getAttrs">getAttrs</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getCDATA">getCDATA</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getChildren">getChildren</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getData">getData</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getName">getName</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getNamespace">getNamespace</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getParent">getParent</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getPayload">getPayload</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getTag">getTag</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getTagAttr">getTagAttr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getTagData">getTagData</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getTags">getTags</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#has_attr">has_attr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setAttr">setAttr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setData">setData</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setName">setName</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setNamespace">setNamespace</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setParent">setParent</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setPayload">setPayload</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setTag">setTag</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setTagAttr">setTagAttr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setTagData">setTagData</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="xmpp.simplexml.Node-class.html">simplexml.Node</a></code></b>:
      <code><a href="xmpp.simplexml.Node-class.html#FORCE_NODE_RECREATION">FORCE_NODE_RECREATION</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">to</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">typ</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">frm</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">attrs</span>=<span class="sig-default"><code class="variable-group">{</code><code class="variable-group">}</code></span>,
        <span class="sig-arg">payload</span>=<span class="sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="sig-arg">timestamp</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">xmlns</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">node</span>=<span class="sig-default">None</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  Constructor, name is the name of the stanza i.e. 'message' or 
  'presence' or 'iq'. to is the value of 'to' attribure, 'typ' - 'type' 
  attribute frn - from attribure, attrs - other attributes mapping, payload
  - same meaning as for simplexml payload definition timestamp - the time 
  value that needs to be stamped over stanza xmlns - namespace of top 
  stanza node node - parsed or unparsed stana to be taken as prototype.
  <dl class="fields">
    <dt>Overrides:
      <a href="xmpp.simplexml.Node-class.html#__init__">simplexml.Node.__init__</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="getErrorCode"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getErrorCode</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.getErrorCode">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  Return the error code. Obsolette.
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="setError"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setError</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">error</span>,
        <span class="sig-arg">code</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.setError">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  Set the error code. Obsolette. Use error-conditions instead.
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="setTimestamp"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setTimestamp</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">val</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.setTimestamp">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  Set the timestamp. timestamp should be the yyyymmddThhmmss string.
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="__setitem__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__setitem__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">item</span>,
        <span class="sig-arg">val</span>)</span>
    <br /><em class="fname">(Index assignment operator)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="xmpp.protocol-pysrc.html#Protocol.__setitem__">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  Set the item 'item' to the value 'val'.
  <dl class="fields">
    <dt>Overrides:
      <a href="xmpp.simplexml.Node-class.html#__setitem__">simplexml.Node.__setitem__</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="xmpp-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0beta1 on Sat Dec 15 22:25:16 2007
    </td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
